const Logger = require("egg-logger").Logger
const FileTransport = require("egg-logger").FileTransport
const ConsoleTransport = require("egg-logger").ConsoleTransport

let path = require("path")
let os = require("os")
const logger = new Logger()
logger.set("file", new FileTransport({
	file: path.resolve(path.join(os.homedir(), "/logs/wserver/my.log")),
	level: "INFO",
}))
logger.set("console", new ConsoleTransport({
	level: "DEBUG",
}))
module.exports = logger